package com.rcm.dda.json.response;

import java.io.Serializable;

public class JsonResponseError implements Serializable {

	private static final long serialVersionUID = 158017318830187086L;

	public static String VALIDATION = "validation";
	public static String UPDATE_FAILED = "update-failed";
	public static String DUPLICATE = "duplicate-key";

	private String type;
	private Object error;

	public JsonResponseError(String type, Object error) {
		this.type = type;
		this.error = error;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Object getError() {
		return error;
	}

	public void setError(Object error) {
		this.error = error;
	}

}
